import java.util.List;
import java.util.Random;

public class RandomCaller {
    private Random random = new Random();

    public String getRandomStudentFromGroup(List<String> groupStudents) {
        int index = random.nextInt(groupStudents.size());
        return groupStudents.get(index);
    }

    public String getRandomStudentFromClass(List<String> classStudents) {
        int index = random.nextInt(classStudents.size());
        return classStudents.get(index);
    }

    public String getRandomGroup(List<String> groups) {
        int index = random.nextInt(groups.size());
        return groups.get(index);
    }
}
